<!DOCTYPE html>
<html lang="zh" th:replace="~{layout/index-layout::layout(~{::title}, ~{::link}, ~{::div.content-header}, ~{::section.content}, ~{::script})}"
      xmlns:th="http://www.thymeleaf.org">
<head>
    <title>管理平台 | 用户管理</title>
    <link rel="stylesheet" th:href="@{/static/plugins/datatables.net-bs4/css/dataTables.bootstrap4.min.css}">
</head>
<body class="hold-transition sidebar-mini layout-fixed layout-navbar-fixed layout-footer-fixed">
<div class="wrapper">
    <!-- Content Wrapper. Contains page content -->
    <div class="content-wrapper">
        <!-- Content Header (Page header) -->
        <div class="content-header">
            <div class="container-fluid">
                <div class="row mb-2">
                    <div class="col-sm-6">
                        <h1 class="m-0 text-dark">用户管理</h1>
                    </div><!-- /.col -->
                    <div class="col-sm-6">
                        <ol class="breadcrumb float-sm-right">
                            <li class="breadcrumb-item">系统管理</li>
                            <li class="breadcrumb-item active">用户管理</li>
                        </ol>
                    </div><!-- /.col -->
                </div><!-- /.row -->
            </div><!-- /.container-fluid -->
        </div>
        <!-- /.content-header -->

        <!-- Main content -->
        <section class="content">
            <div class="container-fluid">
                <!-- Info boxes -->

                <!-- /.row -->

                <!-- Main row -->
                <div class="row">
                    <div class="col">
                        <div class="card">
                            <div class="card-header">
                                <h5 class="card-title"></h5>
                                <div class="card-tools">
                                    <div class="btn-group">
                                        <button type="button" class="btn btn-tool dropdown-toggle" data-toggle="dropdown">
                                            <i class="fas fa-wrench"></i>
                                        </button>
                                        <div class="dropdown-menu dropdown-menu-right" role="menu">
                                            <a href="#" class="dropdown-item">新增</a>
                                        </div>
                                    </div>
                                </div>
                            </div>
                            <div class="card-body">
                                <table class="table" id="personTalbe">
                                    <thead>
                                    <tr>
                                        <th data-data="username">实验室名称</th>
                                        <th data-data="mobile">实验室类别</th>
                                    </tr>
                                    </thead>
                                    <tbody></tbody>
                                </table>
                            </div>
                        </div>
                    </div>
                </div>
                <!-- /.row -->
            </div><!--/. container-fluid -->
        </section>
        <!-- /.content -->
    </div>
    <!-- /.content-wrapper -->
</div>
<!-- ./wrapper -->
<!-- REQUIRED SCRIPTS -->
<!-- datatables -->
<script type="text/javascript" th:src="@{/static/plugins/datatables.net/js/jquery.dataTables.min.js}"></script>
<script type="text/javascript" th:src="@{/static/plugins/datatables.net-bs4/js/dataTables.bootstrap4.min.js}"></script>
<script type="text/javascript" th:src="@{/static/js/datatables/my-datatables.js}"></script>

<script>
$(function() {
    var table = myDataTable('#personTalbe', "/users", {
        id : "123"
    });
});
</script>
</body>
</html>
